//
//  SearchCollectionViewCell.m
//  Funny
//
//  Created by dllo on 15/11/5.
//  Copyright © 2015年 King. All rights reserved.
//

#import "SearchCollectionViewCell.h"

@implementation SearchCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.title = [[UILabel alloc]init];
        _title.layer.borderWidth = 1;
        _title.layer.borderColor = [UIColor grayColor].CGColor;
        _title.layer.masksToBounds = YES;
        _title.layer.cornerRadius = 15.0;
        _title.textAlignment = NSTextAlignmentCenter;
        _title.textColor =  [UIColor grayColor];
        [self addSubview:_title];
    }
    return self;
}

- (void)setName:(NSString *)name
{
    self.title.text = name;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.title.frame = CGRectMake(0, 0, SelfWidth, SelfHeight);
}

@end
